Microsoft® Visual Basic® Scripting Edition
Stop Statement
Home |

See Also                   


Description
Suspends code execution.

Syntax

Stop

When a Stop statement is encounted in VBScript code, the Microsoft Script Debugger is automatically started, if it isn't already open. The context for the debug session is the context of the code where the Stop statement appeared.

Remarks

You can place Stop statements anywhere in procedures to suspend execution. Using the Stop statement is similar to setting a breakpoint in code. The value of all variables is preserved while execution is suspended.


© 1996 by Microsoft Corporation.